package com.chengxiaoxiao.service.impl;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.dao.ConfigurationDao;
import com.chengxiaoxiao.dao.impl.ConfigurationDaoImpl;
import com.chengxiaoxiao.domain.Configuration;
import com.chengxiaoxiao.service.ConfigurationService;

import java.util.List;

public class ConfigurationServiceImpl implements ConfigurationService {

    private ConfigurationDao dao = new ConfigurationDaoImpl();

    @Override
    public void add(Configuration configuration) {
        dao.add(configuration);
    }

    @Override
    public void update(Configuration configuration) {
        dao.update(configuration);
    }

    @Override
    public void delete(long id) {
        dao.delete(id);
    }

    @Override
    public List get() {
        return dao.get();
    }

    @Override
    public Configuration getbyId(long id) {
        return dao.getbyId(id);
    }

    @Override
    public Page getListPage(String num) {
        return null;
    }

    @Override
    public Configuration getValueByKey(String key) {
        return dao.getValueByKey(key);
    }

    @Override
    public String getValue(String key) {
        return dao.getValue(key);
    }
}
